import { Injectable } from '@angular/core';
import { HttpHeaders, HttpClient } from '@angular/common/http';
import "rxjs/add/operator/map";

@Injectable()

export class HttpInterceptorService {
  private headers = new HttpHeaders({'Content-Type': 'application/json'});
  private heroesUrl = 'api/heroes';  // URL to web api

  constructor(private http: HttpClient) { }
  getTest() {
  return  this.http.get('/api/data.json').map(data => data);
  }
  
}
